

import * as types from '../types'


const state = {
  playSong: null
}
const mutations = {
  [types.MUSIC_SET_PLAY_SONG](state, song) {
    console.log('正常存储');
    state.playSong = song
    console.log(state.playSong);
  }

}
const actions = {
  setPlaySong({ commit }, song) {
    console.log('存储song');
    commit(types.MUSIC_SET_PLAY_SONG, song)
  }
}
const getters = {
  playSong: state => {
    return state.playSong
  }
}


export default {
  state, mutations, actions, getters
}